package com.lwq.designpattern.structuralPatterns.decoratorPattern;

/**
 * @author liwq
 * @description
 * @date 2021/12/2 22:08
 */
public class Demo {

    public static void main(String[] args) {
        // 普通车
        Car car = new BenciCar();
        car.run();
        System.out.println("=========================");
        // 装饰过后，增强了的车
        CarDecorator carDecorator = new BenciCarDecorator(new BenciCar());
        carDecorator.run();
    }

}
